package com.bw.merchant.adapter

import android.widget.ImageView
import com.bw.image.GlideImageLoader
import com.bw.merchant.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * Author :
 * Created by lhy on 2025/5/11.
 * Description:
 */
class ImageAdapter:BaseQuickAdapter<String,BaseViewHolder>(R.layout.item_settled_image) {
    override fun convert(holder: BaseViewHolder, item: String) {
        val imageView = holder.getView<ImageView>(R.id.img_add)
        if(item=="初始"){
            GlideImageLoader.loadResImage(context,R.drawable.add_gory,imageView)
        }else{
            GlideImageLoader.loadImage(context,item,imageView)
        }
    }
}